package net.xxcl.kygl.model;

import net.xxcl.kygl.util.JsonDateSerializer;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;

/**
 * User: 夏汛
 * Date: 12-9-19
 * Time: 下午9:53
 */
public class FruitForList {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private String dept;

    private Integer count;

    private Integer rank;

    private Integer state;

    private Integer userid;

    private Integer fruittype;

    private Date time;

    private String journal;

    private String note;

    private String username;

    private String fruitTypeName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getFruittype() {
        return fruittype;
    }

    public void setFruittype(Integer fruittype) {
        this.fruittype = fruittype;
    }

    public String getUsername() {
        return username;
    }

    @JsonSerialize(using=JsonDateSerializer.class)
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getJournal() {
        return journal;
    }

    public void setJournal(String journal) {
        this.journal = journal;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getFruitTypeName() {
        return fruitTypeName;
    }

    public void setFruitTypeName(String fruitTypeName) {
        this.fruitTypeName = fruitTypeName;
    }
}
